package org.spindle.soasuite.transformer.web;


import com.google.gson.Gson;
import org.spindle.soasuite.transformer.api.IWebTransformer;

public class GsonJSONTransformer implements IWebTransformer {

    private Gson marshaller = new Gson();

    public String getContentType() {
        return "application/json";
    }

    public String toJSON(Object obj) {
        return marshaller.toJson(obj);
    }
}
